package com.dayu.design.创建型.简单工厂模式;

import com.dayu.design.common.ShapeEnum;
import lombok.SneakyThrows;

/**
 * @author dayu
 * @create 2023-11-28 17:55
 */
public class MainTest {
    @SneakyThrows
    public static void main(String[] args){
        ShapeFactory factory=new ShapeFactory();
        factory.getShape(ShapeEnum.CIRCLE).draw();
        factory.getShape(ShapeEnum.RECTANGLE).draw();
        factory.getShape(ShapeEnum.SQUARE).draw();
    }
}
